package com.hgxd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hgxd.entity.pojo.InspectionStyle;
import com.hgxd.mapper.InspectionStyleMapper;
import com.hgxd.service.InspectionStyleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 巡检管理 服务实现类
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Service("InspectionStyleServiceImpl")
public class InspectionStyleServiceImpl extends ServiceImpl<InspectionStyleMapper, InspectionStyle> implements InspectionStyleService {

    @Resource
    private InspectionStyleMapper inspectionStyleMapper;

    @Override
    public List<InspectionStyle> getInspectStyleByInspectionId(Integer inspectionId) {
        QueryWrapper<InspectionStyle> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("inspection_id",inspectionId);
        return inspectionStyleMapper.selectList(queryWrapper);
    }
}
